<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<HyperLocal.Core.LocalOrbEvent>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../../Scripts/jQueryUI_1.7.2.js" type="text/javascript"></script>

    <script src="../../Scripts/jQueryUIDatepicker_1.7.2.js" type="text/javascript"></script>

    <script src="../../Scripts/Event/CreateEvent.js" type="text/javascript"></script>

    <h2>
        Create a New Event</h2>
    <% using (Html.BeginForm())
       {%>
    <%= Html.ValidationSummary("Event Addition was unsuccessful. Please correct the errors and try again.") %>
    <fieldset>
        <legend>Fields</legend>
        <p>
            <label for="EventTitle">
                EventTitle:</label>
            <%= Html.TextBox("EventTitle") %>
            <%= Html.ValidationMessage("EventTitle", "*") %>
        </p>
        <p>
            <label for="EventDescription">
                EventDescription:</label>
            <%= Html.TextArea("EventDescription") %>
            <%= Html.ValidationMessage("EventDescription", "*") %>
        </p>
        <p>
            <label for="EventTypeId">
                Event Type:</label>
            <%= Html.DropDownList("EventTypeId")%>
            <%= Html.ValidationMessage("EventTypeId", "*")%>
        </p>
        <p>
            <label for="CostOfEvent">
                CostOfEvent:</label>
            <%= Html.DropDownList("CostOfEvent") %>
            <%= Html.ValidationMessage("CostOfEvent", "*") %>
        </p>
        <p>
            <label for="DateOfEvent">
                DateOfEvent:</label>
            <%= Html.TextBox("DateOfEvent") %>
            <%= Html.ValidationMessage("DateOfEvent", "*") %>
        </p>
        <p>
            <label for="TimeOfEvent">
                TimeOfEvent:</label>
            <%= Html.DropDownList("TimeOfEvent") %>
            <%= Html.ValidationMessage("TimeOfEvent", "*") %>
        </p>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="StyleInjection" runat="server">
    <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" />
</asp:Content>
